//
//  UIColor+method.m
//  3D_Touch
//
//  Created by Xie Wei on 2019/7/19.
//  Copyright © 2019 Xie Wei. All rights reserved.
//


#define random(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)/255.0]

#import "UIColor+method.h"

@implementation UIColor (method)

+ (UIColor *)randomColor {
    return random(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256));
}

@end
